package graduate.wangyaqi.Account;

import org.springframework.data.repository.CrudRepository;

// This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository
// CRUD refers Create, Read, Update, Delete

public interface UserRepository extends CrudRepository<User, Long> {
    User findByEmail(String email);

    User findUserByEmailAndPassword(String email, String password);

    User findUserByEmailAndRandNum(String email,String randNum);
}
